package com.zhou.pojo;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


//等价于<bean id="user" class="com.zhou.pojo.User"/>
@Component
public class User {

    public String name;
    @Value("zhou")
    public void setName(String name) {
        this.name = name;
    }
}
